package com.qingke.oo;

public class Circles extends Shape{
	private double radius = 1;
	public Circles(){
		
	}
	
	public Circles(double radius,String color,boolean filled){
		this.radius = radius;
		this.setColor(color);
		this.setFilled(filled);
	}
	
	public Circles(double radius){
		this.radius = radius;
	}
	
	public double getRadius(){
		return radius;
	}
	
	public void setRadius(double radius){
		this.radius =radius;
	}
	
	public double getArea(){
		return Math.PI*radius*radius;
	}
	
	public double getPerimeter(){
		return 2*Math.PI*radius;
	}
	
	public String toString(){
		return "radius= "+radius;
	}
}
